﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp8
{
    class Hero
    {
        private string heroName;
        private string heroinfo;
        private string nikename;
        private int attack;
        private int defend;
        private int speed;

        public Hero()
        {
        }
        public Hero(string nikename, string heroname, string heroinfo, int attack, int defend, int speed)
        {
            this.nikename = nikename;
            this.heroName = heroname;
            this.heroinfo = heroinfo;
            this.attack = attack;
            this.defend = defend;
            this.speed = speed;
        }
        public void Hello()
        {
            Console.WriteLine("昵称：{0}，英雄姓名：{1}，英雄介绍：{2}，攻击力：{3}，防御力：{4}，速度：{5}",
                this.nikename, this.heroName, this.heroinfo, this.attack, this.defend, this.Speed);
        }

        public int MyProperty { get; set; }
        public string HeroName
        {
            get { return this.heroName; }
            set { this.heroName = value; }
        }
        public string HeroInfo
        {
            get { return this.heroinfo; }
            set { this.heroinfo = value; }
        }
        public string NickName
        {
            get { return this.nikename; }
            set { this.nikename = value; }
        }
        public int Attack
        {
            get { return this.attack; }
            set { this.attack = value; }
        }
        public int Defend
        {
            get { return this.defend; }
            set { this.defend = value; }
        }
        public int Speed
        {
            get { return this.speed; }
            set { this.speed = value; }
        }
    }
}
